package com.kfm.dao;

import com.kfm.entity.Classes;
import com.kfm.util.DBUtil;

import java.sql.SQLException;
import java.util.List;

public class ClassesDao {

    private DBUtil<Classes> dbUtil = new DBUtil<>();

    public List<Classes> selectAll() throws SQLException {
        String sql = "select * from classes";
        return dbUtil.queryList(sql, Classes.class);
    }
}
